<? if($this->pageArray['pageNumber']>0):?>
			<form name="userIndexForm" id="userIndexForm">
				<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CEE7FF" style="border-collapse:collapse">
					<tr>
						<td width="20%" class="bbgg">
							<strong>优惠码</strong>
						</td>
						<td width="20%" class="bbgg">
							<strong>开始日期</strong>
						</td>
						<td width="20%" class="bbgg">
							<strong>结束日期</strong>
						</td>
						<td width="20%" class="bbgg">
							<strong>来源</strong>
						</td>
						<td width="20%" class="bbgg">
							<strong>操 作</strong>
						</td>
					</tr>		
					<? for($i=0;$i<count($this->itemArray);$i++):?>						
					<tr bgcolor="#FFFFFF">
						<td align="center" valign="middle">
							<?=$this->itemArray[$i]['code']?>
						</td>
						<td align="center">
							<?=date('Y-m-d H:i:s',$this->itemArray[$i]['createtime'])?>
						</td>
						<td align="center">
							<?=date('Y-m-d H:i:s',$this->itemArray[$i]['endtime'])?>
						</td>
						<td align="center">
							<?=$this->itemArray[$i]['from']?>
						</td>
						<td align="center">
							<a href="administrator<?=CHOSING_DE?>couponcode<?=CHOSING_DE?>edit?code=<?=$this->itemArray[$i]['code']?>">编辑</a>&nbsp;
							<a href="administrator<?=CHOSING_DE?>couponcode<?=CHOSING_DE?>del?code=<?=$this->itemArray[$i]['code']?>" onclick="if(!confirm('是否删除?')) {return false;}">删除</a>
						</td>
					</tr>
					<? endfor;?>													
				</table>
				<br />
				<div class="factory_page">共 <?=$this->pageArray['pageNumber']?> 页/当前<?php echo $this->pageArray['page'];?>　<?=$this->pageString?></div>
				<div style="clear: both"></div>
			</form>
<?else:?>
<?=$this->getMsg('暂无优惠码!');?>
<?endif;?>
<script>

</script>